home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1996 / MacHack 1996.toast / Hacks / Hacks ’92 / Run & Stumpy / source / volumeloop.h < prev   
Encoding:
C/C++ Source or Header  |  1992-06-18  |  450 b   |  25 lines  |  [TEXT/MPS ]

  1. #ifndef volumeloop_h
  2. #define volumeloop_h
  3.  
  4. #include <errors.h>
  5.  
  6. #ifndef volumeinfo_h
  7. #include "volumeinfo.h"
  8. #endif
  9.  
  10. class volumeloop: public volumeinfo
  11.   {
  12.     private:
  13.         short index;
  14.     public:
  15.         volumeloop()                            { volumeinfo::nth(index=1); }
  16.         
  17.         void next()                                { volumeinfo::nth(++index); }
  18.         
  19.         boolean finished()                    { return whatiswrong() == nsvErr; }
  20.         boolean unfinished()                    { return whatiswrong() != nsvErr; }
  21.   };
  22.  
  23. #endif volumeloop_h
  24.  
  25.